<template>
  <view>
    <Item :list="list"></Item>
  </view>
</template>

<script>
import data from "./index.json";
import Item from "./Item";
import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue";
export default {
  components: { uniNavBar, Item },
  onReady() {
    const first = uni.getStorageSync("first");
    if (first.length <= 0) {
      uni.redirectTo({
        url: "../first/index",
      });
    }
  },
  data() {
    return {
      list: [],
    };
  },
  onLoad: function () {
    this.list = data;
    uni.setStorageSync("list", JSON.stringify(this.list));
  },
  methods: {},
};
</script>

<style>
</style>
